package com.sjgtw.cloud.web.siteGuard.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sjgtw.cloud.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;
import java.util.List;

/**
 * 重点地段看守管理对象 t_eg_site_guard
 * 
 * @author lvyoufang
 * @date 2024-03-14
 */
@ApiModel(value="重点地段看守管理对象", description="t_eg_site_guard")
public class SiteGuard extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 区段 */
    @ApiModelProperty(value = "区段")
    private Long section;

    /** 工区 */
    @ApiModelProperty(value = "工区")
    private Long workArea;

    /** 区段名称 */
    @ApiModelProperty(value = "区段名称")
    @ExcelProperty(value = "区段")
    private String sectionName;

    /** 工区名称 */
    @ApiModelProperty(value = "工区名称")
    @ExcelProperty(value = "工区")
    private String workAreaName;

    /** 看守时间 */
    @ApiModelProperty(value = "看守时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ExcelProperty(value = "看守时间")
    private Date guardTime;

    /** 看守人 */
    @ApiModelProperty(value = "看守人")
    @ExcelProperty(value = "看守人")
    private String guardUser;

    /** 看守地点 */
    @ApiModelProperty(value = "看守地点")
    @ExcelProperty(value = "看守地点")
    private String guardPlace;

    /** 现场情况 */
    @ApiModelProperty(value = "现场情况")
    @ExcelProperty(value = "现场情况")
    private String situation;

    /** 是否已提交 */
    @ApiModelProperty(value = "是否已提交")
    private Boolean submited;

    /** 创建人id */
    @ApiModelProperty(value = "创建人id")
    private Long createUserId;

    private List<Long> deptIds;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSection(Long section) 
    {
        this.section = section;
    }

    public Long getSection() 
    {
        return section;
    }
    public void setWorkArea(Long workArea) 
    {
        this.workArea = workArea;
    }

    public Long getWorkArea() 
    {
        return workArea;
    }
    public void setGuardTime(Date guardTime) 
    {
        this.guardTime = guardTime;
    }

    public Date getGuardTime() 
    {
        return guardTime;
    }
    public void setGuardUser(String guardUser) 
    {
        this.guardUser = guardUser;
    }

    public String getGuardUser() 
    {
        return guardUser;
    }
    public void setGuardPlace(String guardPlace) 
    {
        this.guardPlace = guardPlace;
    }

    public String getGuardPlace() 
    {
        return guardPlace;
    }
    public void setSituation(String situation) 
    {
        this.situation = situation;
    }

    public String getSituation() 
    {
        return situation;
    }
    public void setSubmited(Boolean submited)
    {
        this.submited = submited;
    }

    public Boolean getSubmited()
    {
        return submited;
    }
    public void setCreateUserId(Long createUserId) 
    {
        this.createUserId = createUserId;
    }

    public Long getCreateUserId() 
    {
        return createUserId;
    }
    public void setSectionName(String sectionName) 
    {
        this.sectionName = sectionName;
    }

    public String getSectionName() 
    {
        return sectionName;
    }
    public void setWorkAreaName(String workAreaName) 
    {
        this.workAreaName = workAreaName;
    }

    public String getWorkAreaName() 
    {
        return workAreaName;
    }

    public List<Long> getDeptIds() {
        return deptIds;
    }

    public void setDeptIds(List<Long> deptIds) {
        this.deptIds = deptIds;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("section", getSection())
            .append("workArea", getWorkArea())
            .append("guardTime", getGuardTime())
            .append("guardUser", getGuardUser())
            .append("guardPlace", getGuardPlace())
            .append("situation", getSituation())
            .append("submited", getSubmited())
            .append("remark", getRemark())
            .append("createUserId", getCreateUserId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("sectionName", getSectionName())
            .append("workAreaName", getWorkAreaName())
            .toString();
    }
}
